<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Shares.aspx.cs" Inherits="MOM.DB.Shares" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>    
	<title>Shares</title>
	<style type="text/css">
		@import url(../Css/Mom.css);
		@import url(../Css/themes/green.css);
		th, td
		{
			padding: 5px;
		}
		a
		{
			font-weight: bold;
			text-decoration: underline;
		}
		a.Nav
		{
			margin-right: 20px;
		}
	</style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width:760px;margin:0 auto;margin-top:20px;">
    
    <div class="DropShadow">
		<div class="Box">
			<div class="P10">
				<asp:LinkButton ID="lbShares" Text="Shares" CssClass="Nav" CommandArgument="Shares" OnClick="Nav_Click" runat="server"></asp:LinkButton>
				<asp:LinkButton ID="blTracks" Text="Disabled Tracks" CssClass="Nav" CommandArgument="Tracks" OnClick="Nav_Click" runat="server"></asp:LinkButton>
			</div>
		</div>
	</div>
    
    <div class="DropShadow">
		<div class="Box">
			<div class="P10">
				<asp:PlaceHolder ID="plhShares" runat="server">
				<h1 style="color:#FFFFFF;">Shares</h1>				
				<asp:GridView ID="gvShare" Width="100%" CellSpacing="0" CellPadding="0" BorderStyle="none" BorderWidth="0" GridLines="none" DataKeyNames="Id,ParentId" AutoGenerateColumns="false" OnRowEditing="Share_Edit" OnRowCancelingEdit="Share_Cancel" OnRowUpdating="Share_Update" OnRowDeleting="Share_Delete" runat="server">
					<Columns>
						<asp:CheckBoxField DataField="Enabled" HeaderText="Enabled" />
						<asp:BoundField DataField="Name" HeaderText="Name" />
						<asp:BoundField DataField="Path" ReadOnly="true" HeaderText="Path" />
						<asp:BoundField DataField="Priority" HeaderText="Priority" />
						<asp:CommandField DeleteText="Delete" EditText="Edit" UpdateText="Update" CancelText="Cancel" ShowEditButton="true" ShowDeleteButton="true" />
					</Columns>
				</asp:GridView>
				
				<br /><br />
				
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td>Name:<br /><asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
						<td>Path:<br /><asp:TextBox ID="txtPath" runat="server"></asp:TextBox></td>
						<td>Priority<br /><asp:TextBox ID="txtPriority" runat="server" /></td>
						<td>Enabled:<br /><asp:CheckBox ID="cbEnabled" runat="server" /></td>
					</tr>
					<tr>					
						<td colspan="3">
							<asp:Button ID="Button1" Text="Add Share" OnClick="AddShare_Click" runat="server" />
						</td>
					</tr>
				</table>
				</asp:PlaceHolder>
				
				<asp:PlaceHolder ID="plhTracks" Visible="false" runat="server">
				<h1 style="color:#FFFFFF;">Disabled tracks</h1>
				<asp:GridView ID="gvTrack" Width="100%" CellSpacing="0" CellPadding="0" BorderStyle="none" BorderWidth="0" GridLines="none" DataKeyNames="TrackId" AutoGenerateColumns="false" OnRowCommand="Track_Command" runat="server">
					<Columns>
						<asp:BoundField DataField="TrackName" HeaderText="Track" />
						<asp:BoundField DataField="ShareName" HeaderText="Share" />
						<asp:ButtonField ButtonType="Link" Text="Enable" CommandName="EnableTrack" />
					</Columns>
				</asp:GridView>
				</asp:PlaceHolder>
			</div>
		</div>
    </div>
    </div>
    </form>
</body>
</html>